package cn.geckos.ioc.factory
{
	public class Bean
	{
		private var _id:String;
		private var _scope:String;
		private var _obj:Object;
		private var _name:String;
		private var _initFun:String;
		
		public function set id(id:String):void
		{
			this._id = id;
		}
		public function get id():String
		{
			return this._id;
		}
		
		public function set scope(scope:String):void
		{
			this._scope = scope;
		}
		public function get scope():String
		{
			return this._scope;
		}
		
		public function set object(obj:Object):void
		{
			this._obj = obj;
		}
		public function get object():Object
		{
			return this._obj;
		}
		
		public function set name(name:String):void
		{
			this._name = name;
		}
		public function get name():String
		{
			return this._name;
		}
		
		public function get init():String
		{
			return this._initFun;
		}
		public function set init(initFun:String):void
		{
			this._initFun = initFun;
		}
		
		public function equals(o:Object):Boolean
		{
			if(o != this)
			{
				if(o is Bean)
				{
					var b:Bean = o as Bean;
					if(b.id == this.id && b.name == this.name && b.scope == this.scope)
					{
						return true;
					}
				}
				return false;
			}else return true;
		}
	}
}